package com.bbzn.device.client.dao.producttype;

import com.bbzn.device.client.dataobject.ProductType;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ProductTypeMapper {
    /**
     * delete by primary key
     * @param productId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer productId);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(ProductType record);

    int insertOrUpdate(ProductType record);

    int insertOrUpdateSelective(ProductType record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(ProductType record);

    /**
     * select by primary key
     * @param productId primary key
     * @return object by primary key
     */
    ProductType selectByPrimaryKey(Integer productId);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(ProductType record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(ProductType record);

    List<ProductType> findByAll(ProductType productType);

    int updateBatch(List<ProductType> list);

    int updateBatchSelective(List<ProductType> list);

    int batchInsert(@Param("list") List<ProductType> list);

    List<ProductType> getProductType1();

    List<ProductType> getProductTypeBy1(Integer productId);
}